package org.langqiao.oop;

public class InitialOrderTest {
	
	private static String staticField="静态变量";
	private String field="变量";
	
	public InitialOrderTest(){
		System.out.println("构造器");
	}
	
	//初始化块
	{
		System.out.println("初始化块");
		System.out.println(field);
		
	}
	//静态初始化块
	static{
		System.out.println(staticField);
		System.out.println("静态初始化块");
	}
	
	public static void main(String[] args){
		new InitialOrderTest();
	}

}

